package com.id.coinscleaner

import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.id.coinscleaner.common.ViewBindingFragment
import com.id.coinscleaner.databinding.FragmentFunctionBinding

class FunctionFragment : ViewBindingFragment<FragmentFunctionBinding>() {
    override fun initView() {
        super.initView()
        binding.junkBg.setOnClickListener {
            navigate(R.id.action_functionFragment_to_junkActivity)
        }
        binding.memoryBg.setOnClickListener {
            navigate(R.id.action_functionFragment_to_ramScanFragment)
        }
        binding.gameBg.setOnClickListener {
            navigate(R.id.action_functionFragment_to_gameScanFragment)
        }
        binding.subBtn.setOnClickListener {
            this.requireActivity()
                .startActivity(Intent(this.requireActivity(), PurchaseActivity::class.java))
        }
    }
}